import { request } from 'ngfe-request'

// 获取积分发放记录
export function getGrantIntegralList(params: object) {
  return request('/listPointTx', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'TxMngSVC',
        stdIntfcInd: 'listPointTx',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}

// 获取积分发放规则
export function getActionName(params: object) {
  return request('/listActionName', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'PointRuleSVC',
        stdIntfcInd: 'listActionName',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}